package com.castle.fortress.admin.flowable.form.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
/**
 * 表单配置管理 实体类
 *
 * @author castle
 * @since 2022-09-27
 */
@Data
@ApiModel(value = "flowableFormConfig对象", description = "表单配置管理")
public class FlowableFormConfigDto implements Serializable {
	private static final long serialVersionUID = 1L;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "主键ID")
	@JsonProperty("id")
	private Long id;
	@ApiModelProperty(value = "表单名称")
	@JsonProperty("name")
	private String name;
	@ApiModelProperty(value = "设计内容,json")
	@JsonProperty("designContent")
	private String designContent;
	@ApiModelProperty(value = "表结构内容")
	@JsonProperty("tbContent")
	private String tbContent;
	@ApiModelProperty(value = "视图内容")
	@JsonProperty("viewContent")
	private String viewContent;
	@ApiModelProperty(value = "查询条件")
	@JsonProperty("queryCondition")
	private String queryCondition;
	@ApiModelProperty(value = "访问链接")
	@JsonProperty("url")
	private String url;
	@ApiModelProperty(value = "数据沉淀接口")
	@JsonProperty("saveUrl")
	private String saveUrl;
	@ApiModelProperty(value = "ip白名单")
	@JsonProperty("whiteList")
	private String whiteList;
	@ApiModelProperty(value = "备注")
	@JsonProperty("ramark")
	private String ramark;
	@ApiModelProperty(value = "访问状态")
	@JsonProperty("status")
	private Integer status;
	@ApiModelProperty(value = "是否绑定")
	@JsonProperty("isBind")
	private Integer isBind;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "创建人")
	@JsonProperty("createUser")
	private Long createUser;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "创建部门")
	@JsonProperty("createDept")
	private Long createDept;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "创建职位")
	@JsonProperty("createPost")
	private Long createPost;
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@ApiModelProperty(value = "创建时间")
	@JsonProperty("createTime")
	private Date createTime;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "修改人")
	@JsonProperty("updateUser")
	private Long updateUser;
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@ApiModelProperty(value = "修改时间")
	@JsonProperty("updateTime")
	private Date updateTime;
	@ApiModelProperty(value = "是否删除YesNoEnum")
	@JsonProperty("isDeleted")
	private Integer isDeleted;
	@ApiModelProperty(value = "创建者姓名")
	@JsonProperty("createUserName")
	private String createUserName;



	@ApiModelProperty(value = "是否请假表单 YesNoEnum")
	@JsonProperty("isHoliday")
	private Integer isHoliday;

}
